package ThreadDemo;

public class thread {
    public static void main(String[] args) {
    Thread t1=new MyThread1();
    Thread t2=new MyThread();
    t1.start();
    t2.start();
    }
}
class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("你是谁啊？");
        }
    }
}
class MyThread3 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("开门查水表");
        }
    }
}



